// src/dto/CategorySummaryDto.js
// 用于展示板块列表项的简要信息
export class CategorySummaryDto {
  constructor(data = {}) {
    this.id = data.id || null
    this.name = data.name || ''
    this.description = data.description || ''
    this.iconUrl = data.iconUrl || ''
    this.sortOrder = data.sortOrder || 0
    this.postCount = data.postCount || 0 // 假设后端会返回该板块下的帖子数
    this.todayPostCount = data.todayPostCount || 0 // 假设后端会返回该板块今天的帖子数
    this.lastPostInfo = data.lastPostInfo || null // 可能包含最后回复的帖子ID和时间等信息
  }
}
